package com.mzj.saas.mservice.application.entity;

import com.mzj.saas.mservice.sys.entity.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 审批流程表
 */
@Entity
@Table(name = "saas_approval_process")
public class ApprovalProcess extends IdEntity {
    /*
    *默认流程id
     */
    @Column(name = "default_process_id", nullable = true)
    private Long defaultProcessId;
    /*
     *自定义流程id
     */
    @Column(name = "custom_process_id", nullable = true)
    private Long customProcessId;
    /*
     *生效的流程类型(0默认 1自定义)
     */
    @Column(name = "type", nullable = true)
    private Integer type;
    /*
     *当前生效流程id
     */
    @Column(name = "process_id", nullable = true)
    private Long processId;
    /*
     *社区id
     */
    @Column(name = "community_id", nullable = true)
    private Long communityId;
    /*
     *区id
     */
    @Column(name = "district_id", nullable = true)
    private Long districtId;
    /*
     *状态：0停用 1启用
     */
    @Column(name = "process_status", nullable = true)
    private Integer processStatus;
    /*
     *创建时间
     */
    @Column(name = "create_time", nullable = true)
    private Date createTime;

    /*
     *最后更新时间
     */
    @Column(name = "last_update_time", nullable = true)
    private Date lastUpdateTime;

    /*
     *流程节点区域标签ids
     */
    @Column(name = "approval_process", nullable = true)
    private String approvalProcess;

    /*
     *区域标签流程名称
     */
    @Column(name = "process_tag_name", nullable = true)
    private String processTagName;

    /*
     *状态：0停用 1启用 新增时默认启用
     */
    @Column(name = "status", nullable = true)
    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getApprovalProcess() {
        return approvalProcess;
    }

    public void setApprovalProcess(String approvalProcess) {
        this.approvalProcess = approvalProcess;
    }

    public String getProcessTagName() {
        return processTagName;
    }

    public void setProcessTagName(String processTagName) {
        this.processTagName = processTagName;
    }

    public Integer getProcessStatus() {
        return processStatus;
    }

    public void setProcessStatus(Integer processStatus) {
        this.processStatus = processStatus;
    }
    public Long getDefaultProcessId() {
        return defaultProcessId;
    }

    public void setDefaultProcessId(Long defaultProcessId) {
        this.defaultProcessId = defaultProcessId;
    }

    public Long getCustomProcessId() {
        return customProcessId;
    }

    public void setCustomProcessId(Long customProcessId) {
        this.customProcessId = customProcessId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getProcessId() {
        return processId;
    }

    public void setProcessId(Long processId) {
        this.processId = processId;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public Long getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Long districtId) {
        this.districtId = districtId;
    }


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

}
